package org.springframework.samples.mvc.basic.edinicamerka;

import org.springframework.samples.mvc.basic.business.Transformer;

import com.proba.annotations.pojo.EdinicaMerka;

public class EdinicaMerkaTransformer implements Transformer<EdinicaMerka, EdinicaMerkaView> {

	@Override
	public EdinicaMerkaView transform(EdinicaMerka edinicaMerka) {
		EdinicaMerkaView emv = new EdinicaMerkaView();
		emv.setId(edinicaMerka.getId());
		emv.setEdinicaMerka(edinicaMerka.getEdinicaMerka());
		emv.setEdinicaMerkaLabel(edinicaMerka.getEdinicaMerkaLabel());
		return emv;
	}

	@Override
	public EdinicaMerka transform(EdinicaMerkaView view) {
		EdinicaMerka em = new EdinicaMerka();
		em.setId(view.getId());
		em.setEdinicaMerka(view.getEdinicaMerka());
		em.setEdinicaMerkaLabel(view.getEdinicaMerkaLabel());
		return em;
	}

}
